<?php
class SpecialtextController extends Zend_Controller_Action
{
	private $_db = null;
	
	public function init(){
		$registry = Zend_Registry::getInstance();
		$this->_db = $registry->get('db');
	}
	
	public function indexAction()
	{
		
	}
	
	public function viewAction()
	{               
		$this->_helper->layout->setLayout('layout');
		Zend_Loader::loadFile("../application/default/models/Specialtext.php");
		//Zend_Loader::loadFile("../application/default/models/Aboutcountry.php");
		
		$sess = new Zend_Session_Namespace('locale');
                $curr_lang = $sess->current_lang;
                if($curr_lang != ''){
                    $lang = $curr_lang;
                } else {
                    $lang = 'en';
                }
		
		$model_specialtext = new Specialtext();
		$request = $this->getRequest();
		$st_id = $request->getParam('st_id', 0);
		$specialtext_arr = $model_specialtext->getSpecialtextDetailsById($st_id);
                $breadcrumb= Array ("0" =>Array("title" => "Home", "url" => "/index/" ), "1" =>Array("title" => "Our Services", "url" => "#" ),"2"=>array("title"=>($lang=='en')?$specialtext_arr['title']:$specialtext_arr['title_ru'], "url"=>"") );
                $this->view->breadcrumb()->set($breadcrumb);
		$this->view->specialtext_arr = $specialtext_arr;
		$this->view->lang = $lang;
	}
}	
?>	